package sk.tuke.client;

import sk.tuke.client.interfaces.InitInterface;
import sk.tuke.client.view.DoctorView;
import sk.tuke.client.view.LoginView;


public class ApplicationControllerImpl implements InitInterface {

	public void run() {
		if (authentication.isLogged()) {
			if (mainLayout.getMembers().length == 0) {
				new DoctorView();
			}
		} else {
			new LoginView();
		}

	}

}
